package cn.mw.cmdb.service;

import cn.mw.cmdb.entity.ModelVendorInfo;
import cn.mw.cmdb.param.ExcelExportFieldParam;
import cn.mw.cmdb.param.VendorExcelImportParam;
import cn.mw.cmdb.param.VendorSearchParam;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface ModelVendorService {
    boolean checkVendorName(ModelVendorInfo info) throws Exception;

    String uploadIcon(MultipartFile multipartFile) throws Exception;

    List<ModelVendorInfo> queryVendorByTemplate(String id) throws Exception;

    List<ModelVendorInfo> queryVendorByTemplateName(String templateName) throws Exception;

    List<VendorExcelImportParam>  importVendorByExcel(MultipartFile file, HttpServletResponse response) throws IOException;

    int exportVendorByExcel(VendorSearchParam fieldParam, HttpServletRequest request, HttpServletResponse response) throws Exception;
}
